﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Layouts/List.Master" CodeBehind="GoodStatistics.aspx.cs" Inherits="HHMMS.UI.Modules.Report.GoodStatistics" %>


<asp:Content ContentPlaceHolderID="head" ID="idFormTitle" runat="server">
    <!-- title -->    
<title>存货统计报表</title>
</asp:Content>

<asp:Content ID="idContent" ContentPlaceHolderID="Content" runat="Server">   
<iframe id="download" name="download" src='DeliveredSelect.aspx?Type=<%=Request["Type"] %>' style="display:none;"></iframe>
    <!-- 搜索框 -->
	<div class="search" style="margin-top:2px;">
        <web:search ID="GridSearch" GridViewId="SmartGridView1" runat="server">            
            <SearchConditionTemplate>                                       
                <table cellpadding="0" cellspacing="0" width="95%">
			        <tr>
                        <th>
                            物资编号：
                        </th>
                        <td>
                            <asp:TextBox ID="txtMaterialsNo" name="MaterialsNo" CssClass="txtSelect" runat="server"></asp:TextBox>
                        </td>          
                        <th>
                            物资名称：
                        </th>
                        <td>
                            <asp:TextBox ID="txtMaterialsName" name="MaterialsName" CssClass="txtSelect" runat="server"></asp:TextBox>
                        </td>                           
                    </tr>
                </table>
            </SearchConditionTemplate>                      
        </web:search>        
    </div>

    <div class="datalist">

	    <!-- 工具栏 -->
	    <div class="toolbar"  style="height:30px;">
         <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButtonExport_Click">
                <span>
                    <img id="Img2" alt="" runat="server" src="~/Images/icon_excel.gif" style="border: 0px" />导出
                </span>
            </asp:LinkButton>

	    </div>
	    <div class="datagrid"  style="clear:left;">    

            <!--------------------------- List Area --------------------------->
            <web:SmartGridView ID="SmartGridView1" runat="server" AutoGenerateColumns="False"
                Width="100%" DataKeyNames="StorageNum" DataSourceID="SmartDataSource1" PageSize="10">
                <Columns>  
                 
                    <asp:BoundField DataField="MaterialsNo" HeaderText="物资编号" SortExpression="MaterialsNo" ItemStyle-HorizontalAlign="left" />
                    <asp:BoundField DataField="MaterialsName" HeaderText="物资名称"  ItemStyle-HorizontalAlign="center" SortExpression="MaterialsName"/>
                    <asp:BoundField DataField="StorageNum" HeaderText="库存数量" ItemStyle-HorizontalAlign="left" SortExpression="StorageNum" />
                    <asp:BoundField DataField="Price" HeaderText="单价" ItemStyle-HorizontalAlign="left" SortExpression="Price"/>
                      <asp:BoundField DataField="Amount" HeaderText="总金额" ItemStyle-HorizontalAlign="left" SortExpression="Amount"/>
                   <asp:BoundField DataField="isTip" HeaderText="是否低于库存最低限量" ItemStyle-HorizontalAlign="left" SortExpression="isTip"/>
                </Columns>
                <PagerSettings />
                <EditRowStyle HorizontalAlign="Center" />
            </web:SmartGridView>
    
            <web:SmartSqlDataSource ID="SmartDataSource1" runat="server" SelectCommand="GoodStatistics.list" SelectCountCommand="GoodStatistics.list.count"
            SelectCommandAutoPageWrap="true" DefaultSortExpression="isTip desc">       
                        
            </web:SmartSqlDataSource>
        </div>
	</div>


</asp:Content>
